xen/arm: vgic: Rename nr_lines into nr_spis
authorJulien Grall <julien.grall@linaro.org>
Thu, 15 Jan 2015 20:23:40 +0000 (20:23 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 19 Jan 2015 15:41:23 +0000 (15:41 +0000)
commit96fcbd0599b74b4b2629447a6ee90580f43e3aa4
tree6189edf681a73e456d0f55eed349a6830257978d
parentbabeca328413baebfdca366a5b17c06acf4295e8
xen/arm: vgic: Rename nr_lines into nr_spis

The field nr_lines in the arch_domain vgic structure contains the number of
SPIs for the emulated GIC. Using the nr_lines make confusion with the GIC
code, where it means the number of IRQs. This can lead to coding error.

Also introduce vgic_num_irqs to get the number of IRQ handled by the emulated
GIC.

Finally drop the initialization of nr_spis in both gicv2v_init and gicv3_init
as it's already initialized in vgic common code.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/gic-v2.c
xen/arch/arm/gic-v3.c
xen/arch/arm/vgic-v2.c
xen/arch/arm/vgic-v3.c
xen/arch/arm/vgic.c
xen/include/asm-arm/domain.h
xen/include/asm-arm/vgic.h